package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.XianchaMapper;
import com.information.manage.MaintenanceRecord.pojo.Xiancha;
import com.information.manage.MaintenanceRecord.service.XianchaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XianchaServiceImpl implements XianchaService {
    @Autowired
    private XianchaMapper xianchaMapper;

    @Override
    public List<Xiancha> selectAll() {
        return xianchaMapper.selectAll();
    }

    @Override
    public void addMaintXiancha(Xiancha xiancha) {
        xianchaMapper.insert(xiancha);
    }

    @Override
    public void updateMaintXiancha(Xiancha xiancha) {
        xianchaMapper.update(xiancha);
    }

    @Override
    public void deleteMaintXiancha(Integer xcid) {
        xianchaMapper.delete(xcid);
    }

    @Override
    public void logicDeleteMaintXiancha(Integer xcid) {
        xianchaMapper.logicDelete(xcid);
    }
}